package com.example.teststarter.designpattern;

/**
 * 定义具体享元类
 */
public class ConcreteBook extends Book {

    /**
     * 被借出的书名
     */
    public ConcreteBook(String name) {
        super(name);
    }

    @Override
    public void borrow() {
        System.out.println("借了一本书名为：" + this.name);
    }
}
